<template>
<div id="disease-flo">
    <div class="disease-f">
        <div class="disease-float-head">
            <span v-text="diseaseContent.DISEASE_NAME"></span>
            <img @click.self="close()" src="./image/close.png">
        </div>
        <div class="disease-float-con" v-text="diseaseContent.DISEASE_CONTENT"></div>
    </div>
</div>
</template>

<script>
export default {
    name: 'disease-float',
    props: ['diseaseContent'],
    data: function() {
        return {
            closeDiseaseFloat: false
        }
    },
    methods: {
        close() {
            this.$emit('closeFloat', this.closeDiseaseFloat);
        }
    }
}
</script>

<style scoped>
#disease-flo {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
}

.disease-f {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-height: 50%;
    border-radius: .2rem;
    background-color: #284473;
    color: #FCFCFC;
    font-size: .3rem;
    text-align: justify;
    border: 1px solid #7EFD95;
}

.disease-float-head {
    height: .7rem;
    line-height: .7rem;
    text-align: center;
    border-bottom: 1px solid #7EFD95;
}

.disease-float-head img {
    vertical-align: middle;
    position: absolute;
    right: .15rem;
    top: .15rem;
    width: .3rem;
    height: .3rem;
}

.disease-float-con {
    box-sizing: border-box;
    padding: .3rem;
    text-align: justify;
}

.disease-float-con p {
    margin: 0;
}
</style>